#ifndef EVENTUTIL_H
#define EVENTUTIL_H

#include <QMimeData>
#include <QDragEnterEvent>
#include <QWidget>

class EventUtil
{
    EventUtil();
public:
    //
    static QString getDrageOneFileName(QDragEnterEvent *event);
    static QString getDropOneFileName(QDropEvent *event);

    // QDragEnterEvent
    static bool isDrageOneFile(QDragEnterEvent *event);
    static bool isDrageOneFileSuffix(QDragEnterEvent *event, QString suffix);

};

#endif // EVENTUTIL_H
